package com.fh.entity.map.controllor;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.fh.controller.base.BaseController;
import com.fh.entity.map.Province;
import com.fh.entity.map.service.ProvinceService;
import com.fh.util.AppUtil;
import com.fh.util.PageData;

@Controller()
@RequestMapping("/map")
public class MapControllor extends BaseController{
	@Resource(name="provinceService")
	private ProvinceService provinceService;
	
	
	@RequestMapping(value="/provice")
	@ResponseBody
	public Object editProvince() throws Exception{
		Map<String,Object> map = new HashMap<String,Object>();
		PageData pd = new PageData();
		pd = this.getPageData();
		
		List<Province> proList = provinceService.listProvince(pd);
		map.put("pro",proList);			//返回结果
		return AppUtil.returnObject(new PageData(), map);
	}
}
